using System;

namespace AntEater.Runtime.Services.Building
{
    /// <summary>
    /// Abstract base logger for all building loggers.
    /// </summary>
    public abstract class BuildingLoggerBase : IBuildingLogger
    {
        private BuildingLoggerContext _context;

        /// <summary>
        /// Gets the context.
        /// </summary>
        /// <value>The context.</value>
        protected BuildingLoggerContext Context {
            get { return _context; }
        }

        /// <summary>
        /// Initializes this instance.
        /// </summary>
        /// <param name="context">The context.</param>
        public virtual void Initialize(BuildingLoggerContext context) {
            this._context = context;
        }
    }
}
